<{extend name="public/layout"}>

<{block name="h1"}>系统配置<{/block}>

<{block name="breadcrumb"}>
<li class="active">系统配置</li>
<{/block}>

<{block name="content"}>
<div class="row">
    <div class="col-xs-12">
        <div class="box box-primary">
            <div class="box-body">
                <div class="nav-tabs-custom">
                    <!-- TAB NAVIGATION -->
                    <ul class="nav nav-tabs" role="tablist">
                        <li class="active"><a href="javascript: void(0);">系统配置</a></li>
                        <li><a href="<{:url('language')}>">常用语配置</a></li>
                    </ul>
                    <!-- TAB CONTENT -->
                    <div class="tab-content">
                        <div class="active tab-pane fade in" id="tab1">
                            <form action="" method="post" onsubmit="return false;" class="form-horizontal" id="form-edit">
                                <div class="form-group">
                                    <label for="address" class="control-label col-xs-12 col-sm-2">ws地址</label>
                                    <div class="col-xs-12 col-sm-10">
                                        <input type="text" name="address" id="address" class="form-control" value="<{$row->address|default=$Think.server.HTTP_HOST}>">
                                        <span class="help-block">
                                            <i class="fa fa-info-circle"></i> 客户端websocket连接地址
                                        </span>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="port" class="control-label col-xs-12 col-sm-2">ws端口</label>
                                    <div class="col-xs-12 col-sm-10">
                                        <input type="text" name="post" id="port" class="form-control" value="<{$row->port|default=52915}>">
                                        <span class="help-block">
                                            <i class="fa fa-info-circle"></i> 请保持和 <code>/server/config.php</code>中的 <kbd>WS_PORT</kbd>一致
                                        </span>
                                    </div>
                                </div>

                                <!-- <div class="form-group">
                                     <label class="control-label col-xs-12 col-sm-2">状态</label>
                                     <div class="col-xs-12 col-sm-10">
                                         <label><input type="radio" class="minimal" value="normal" name="status"> 启用</label>
                                         <label><input type="radio" class="minimal" value="hidden" name="status"> 禁用</label>
                                     </div>
                                 </div>-->

                                <div class="form-group">
                                    <div class="row">
                                        <div class="col-xs-offset-3">
                                            <button type="submit" class="btn btn-primary" id="btn-submit">提交</button>
                                            <button class="btn btn-default btn-back">返回</button>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<{/block}>